package day0109;

import java.util.Scanner;

public class Test10 {


    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i >=0 ; i++) {
            System.out.println("请输入账号：");
            String acc=sc.nextLine();

            System.out.println("请输入账号：");
            String pwd=sc.nextLine();

            String a=st( acc  ,  pwd  );
            System.out.println(a);
        }
    }


    static String st(String acc,String pwd){
        String rs="";
        return rs;
    }











    static void guessNum(){
        //1.生成一个随机值
        int ranNum = (int) (Math.random() * 50); //[ 0   ,  50)
        Scanner sc = new Scanner(System.in);
        for(int i=1;  i>0 ;i++){// 让用户输入猜的答案
            System.out.println("请输入您猜的答案:");
            int userNum=sc.nextInt();
            if(userNum>ranNum){
                System.out.println("猜大了");
            }else if(userNum<ranNum){
                System.out.println("猜小了");
            } else {
                System.out.println("恭喜你");
                return;//表示如果猜对了，就结束main方法。
            }
        }
    }
}
